package com.lkd.feign;

import com.lkd.feign.fallback.OrderServiceFallbackFactory;
import com.lkd.vo.PayVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.Map;

/**
 * @author lenovo
 */
@FeignClient(value = "order-service",fallbackFactory = OrderServiceFallbackFactory.class)
public interface OrderService {

    /**
     * 获取支付url
     * @param payVO 请求参数
     * @return Map<String,String >
     */
    @GetMapping("/order/weixinPay")
    Map<String,String > weiXinPay(@RequestBody PayVO payVO);




}
